package com.shoeshopping.vo.zx;

import java.util.List;

import com.shoeshopping.entity.DeliveryAddress;
import com.shoeshopping.entity.Order;
import com.shoeshopping.entity.OrderItem;
import com.shoeshopping.entity.User;

public class VoOrderAdmin {
	private String id;
	private String username;
	private String deliveryAddress;
	private String deliveryName;
	private String deliveryPhone;
	
	public VoOrderAdmin() {
		super();
	}
	
	public VoOrderAdmin(Order order) {
		this.id = order.getId();
		this.username = order.getUser().getUsername();
		this.deliveryAddress = order.getDeliveryAddress().getAddress();
		this.deliveryName = order.getDeliveryAddress().getName();
		this.deliveryPhone = order.getDeliveryAddress().getPhone();
	}

	public VoOrderAdmin(String id, String username,
			String deliveryAddress, String deliveryName, String deliveryPhone) {
		super();
		this.id = id;
		this.username = username;
		this.deliveryAddress = deliveryAddress;
		this.deliveryName = deliveryName;
		this.deliveryPhone = deliveryPhone;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}


	public String getDeliveryAddress() {
		return deliveryAddress;
	}

	public void setDeliveryAddress(String deliveryAddress) {
		this.deliveryAddress = deliveryAddress;
	}

	public String getDeliveryName() {
		return deliveryName;
	}

	public void setDeliveryName(String deliveryName) {
		this.deliveryName = deliveryName;
	}

	public String getDeliveryPhone() {
		return deliveryPhone;
	}

	public void setDeliveryPhone(String deliveryPhone) {
		this.deliveryPhone = deliveryPhone;
	}


	
	


	
}
